# -*- coding: utf-8 -*-

import unittest
import time
import os
import sys

path = os.path.abspath(os.path.dirname(__file__))
project_path = os.path.abspath(os.path.dirname(path))
sys.path.append(project_path)

test_dir = path


def main():
    discover = unittest.defaultTestLoader.discover(test_dir, pattern='test_*.py')
    runner = unittest.TextTestRunner()
    runner.run(discover)


# 一行命令直接执行
# python3 -m unittest discover
if __name__ == '__main__':
    main()
